package com.clw.template.service;

import com.clw.template.entity.SysStorage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.io.InputStream;

/**
 * <p>
 * 文件存储表 服务类
 * </p>
 *
 * @author clw
 * @since 2019-11-13
 */
public interface ISysStorageService extends IService<SysStorage> {

    /**
     * 上传文件
     */
    String store(InputStream inputStream, long contentLength, String contentType, String fileName) throws IOException;


    SysStorage findByKey(String key);
}
